package com.ml.mall.entity.credit;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "sys_credit_record")
public class SysCreditRecord implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 更新者
     */
    @TableField(value = "updater_acc")
    private String updaterAcc;

    /**
     * 变动金额
     */
    @TableField(value = "change_money")
    private BigDecimal changeMoney;

    /**
     * 公司ID
     */
    @TableField(value = "company_id")
    private Long companyId;

    /**
     * 订单号
     */
    @TableField(value = "change_id")
    private Long changeId;

    /**
     * 变动名称枚举：adminAdd adminReduce use
     */
    @TableField(value = "change_name")
    private String changeName;

    @TableField(value = "change_type")
    private Integer changeType;

    private static final long serialVersionUID = 1L;
}